﻿import java.util.Scanner;

public class prac_01 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入月份：");
		if(sc.hasNextInt()){
			int month =sc.nextInt();
			switch(month){
			case 1:
			case 2:
			case 3:
				System.out.println("第一季度");
				break;
			case 4:
			case 5:
			case 6:
				System.out.println("第二季度");
				break;
			case 7:
			case 8:
			case 9:
				System.out.println("第三季度");
				break;
			case 10:
			case 11:
			case 12:
				System.out.println("第四季度");
				break;
			default:
				System.out.println("月份为1~12月，请检查后重新输入！");
			}
		}else{
			System.out.println("请输入正确的数字！");
		}

	}

}